<?php
include("../config.php");
header('content-type:application/json;charset=utf-8');
$sql = "select * from fenlei where 1=1";
$requ = mysqli_query($con,$sql);
$r = '{"msg":"","code":0,"count":0,"is":true,"tip":"ok","data":[';
while($rs = mysqli_fetch_array($requ)){
	$r.='{"id":"'.$rs['id'].'","pId":"'.$rs['shang'].'","name":"'.$rs['name'].'"},';
}
$r=rtrim($r,',');
$r.=']}';
echo $r;









?>